package com.spd.shop.entity;

import javax.persistence.Column;
import javax.persistence.Table;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author 孙沛栋
 * @since 2023-03-28
 */
@Getter
@Setter
//@Table(name="contract")
@ApiModel(value = "Contract对象", description = "")
public class Contract implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("合同id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
//    @Column(name = "landlord_name")
    @ApiModelProperty("房东姓名")
    private String landlordName;
//    @Column(name = "landlord_card")
    @ApiModelProperty("房东身份证号")
    private String landlordCard;
//    @Column(name = "landlord_phone")
    @ApiModelProperty("房东电话")
    private String landlordPhone;
//    @Column(name = "renter_name")
    @ApiModelProperty("租户姓名")
    private String renterName;
//    @Column(name = "renter_card")
    @ApiModelProperty("租户身份证号")
    private String renterCard;
//    @Column(name = "renter_phone")
    @ApiModelProperty("租户电话")
    private String renterPhone;
//    @Column(name = "shop_num")
    @ApiModelProperty("店铺编号")
    private String shopNum;
//    @Column(name = "address")
    @ApiModelProperty("地址")
    private String address;
//    @Column(name = "use")
    @ApiModelProperty("用途")
    private String purpose;
//    @Column(name = "price")
    @ApiModelProperty("租金")
    private String price;
//    @Column(name = "lease_term")
    @ApiModelProperty("租期")
    private String leaseTerm;
//    @Column(name = "times")
    @ApiModelProperty("几次付清")
    private String times;
//    @Column(name = "start_time")
    @ApiModelProperty("生效日期")
    private LocalDate startTime;
//    @Column(name = "end_time")
    @ApiModelProperty("结束日期")
    private LocalDate endTime;
//    @Column(name = "create_time")
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @Override
    public String toString() {
        return "Contract{" +
                "id=" + id +
                ", landlordName='" + landlordName + '\'' +
                ", landlordCard='" + landlordCard + '\'' +
                ", landlordPhone='" + landlordPhone + '\'' +
                ", renterName='" + renterName + '\'' +
                ", renterCard='" + renterCard + '\'' +
                ", renterPhone='" + renterPhone + '\'' +
                ", shopNum='" + shopNum + '\'' +
                ", address='" + address + '\'' +
                ", purpose='" + purpose + '\'' +
                ", price='" + price + '\'' +
                ", leaseTerm='" + leaseTerm + '\'' +
                ", times='" + times + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", createTime=" + createTime +
                '}';
    }
}
